package cz.schovjan.mte_proj.dto;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * DTO pro zaznam z lyricchats API odpovidajici vyhledavacim pozadavkum
 * @author schovjan
 */
public class LyricResult implements Parcelable {

    private String artist;
    private String song;
    private String text;
    private String lyricId;
    private String checksum;


    public LyricResult() {}


    public String getArtist() {
	return artist;
    }


    public void setArtist(String artist) {
	this.artist = artist;
    }


    public String getSong() {
	return song;
    }


    public void setSong(String song) {
	this.song = song;
    }


    public String getText() {
	return text;
    }


    public void setText(String text) {
	this.text = text;
    }


    public String getLyricId() {
	return lyricId;
    }


    public void setLyricId(String lyricId) {
	this.lyricId = lyricId;
    }


    public String getChecksum() {
	return checksum;
    }


    public void setChecksum(String checksum) {
	this.checksum = checksum;
    }


    @Override
    public String toString() {
	return artist + " - " + song;
    }


    @Override
    public int describeContents() {
	return 0;
    }


    @Override
    public void writeToParcel(Parcel out, int flags) {
	out.writeString(artist);
	out.writeString(song);
	out.writeString(text);
	out.writeString(lyricId);
	out.writeString(checksum);
    }

    public static final Parcelable.Creator<LyricResult> CREATOR = new Parcelable.Creator<LyricResult>() {

	public LyricResult createFromParcel(Parcel in) {
	    return new LyricResult(in);
	}


	public LyricResult[] newArray(int size) {
	    return new LyricResult[size];
	}
    };


    private LyricResult(Parcel in) {
	artist = in.readString();
	song = in.readString();
	text = in.readString();
	lyricId = in.readString();
	checksum = in.readString();
    }
}